package com.hospital.managing.information.system.service.Impl;

import com.hospital.managing.information.system.dao.IWorkerDao;
import com.hospital.managing.information.system.model.Worker;
import com.hospital.managing.information.system.service.IWorkerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class WorkerServiceImpl implements IWorkerService {
@Autowired
    private IWorkerDao iWorkerDao;

    @Override
    public List<Worker> selectWorker() { return iWorkerDao.selectWorker();}

    @Override
    public List<Worker> selectWorkerByProId(Worker worker) {
        return iWorkerDao.selectWorkerByProId(worker);
    }
}
